#ifndef _ATTRIBUTEWIDGET_H_
#define _ATTRIBUTEWIDGET_H_

#include <SEUi/Widget/Widget.h>
#include <SERender/Resourses/Material.h>
#include <SECore/Signal.h>
#include <SECore/ResourcePayload.h>

namespace SEngine
{
    class EditLayer;
    class Actor;
    class AttributeWidget : public Widget
    {
    public:
        AttributeWidget(EditLayer &);
        virtual ~AttributeWidget() = default;

    protected:
        virtual void BeginUpdate() override;
        virtual void UpdateImpl(int delta) override;
        virtual void EndUpdate() override;

    private:
        void ShowComponentsCombo(Actor & actor);
        void ShowComponentDetail(Actor & actor);

    public:
        Signal<ResRef<Material>> SignalLoadMaterial;

    private:
        EditLayer & m_layer;
    };
} // namespace SEngine



#endif